Long story short: fourier series is taken in two subjects (for now).
One doc says that the dc component is 0 if the function is odd.
The other says that odd and even has no effect on the dc component; it is the symmetry to x-axis that matters.
Is there a function that is odd , has a dc component and periodic?
The dc component of $x\mapsto f(-x)$ is the same as for $f$. The dc componet of $x\mapsto -f(x)$ is the negative of the dc component of $f$. Hence for odd $f$, the dc component equals its own negative and must be zero.
Also not that no function (except constant zero) is symmetric to the $x$-axis.